package org.jeecg.modules.product.risk.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.product.risk.entity.TbBaseMeasuresTaskRecord;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.List;
import java.util.Map;

/**
 * @Description: 风险排查记录
 * @Author: jeecg-boot
 * @Date:   2024-04-29
 * @Version: V1.0
 */
public interface ITbBaseMeasuresTaskRecordService extends IService<TbBaseMeasuresTaskRecord> {
    List<Map> countForThisWeekTaskRecordByUsername(String username);

    List<TbBaseMeasuresTaskRecord> countForTimeFrame(String nodeType);

    Page<TbBaseMeasuresTaskRecord> queryPageListBylistCompositeCondition(Page<TbBaseMeasuresTaskRecord> pageList, String checkStatus, String nodeType);

    List<Map>  countForThisMonthTaskRecord();

    List<Map> countByRiskDeviceAndCheckStatus(String startDate, String endDate, String riskDeviceId);

    void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException;
}
